package com.itheima.charstream;

import java.io.FileWriter;
import java.io.IOException;

public class Demo02 {

    public static void main(String[] args) throws IOException {
        //能追加吗?
        FileWriter writer = new FileWriter("day13\\a.txt",true);
        //能直接写字符吗 汉字
        writer.write('魑');//char -> int


        //如何换行
        writer.write("\r\n");
        writer.write('魅');//char -> int
        writer.write('魍');//char -> int
        writer.write('魉');//char -> int
        writer.write('魑');//char -> int


        writer.close();
    }
}
